package Form::FriendInvitation;
use strict;
use warnings;
use base qw(My::Form);
use Form::Field::OcfCentrePopupMenu;
use Form::Field::PhoneNumberField;
use Rose::HTML::Form::Field::RadioButtonGroup;

sub build_form {
	my ($self) = shift;
	my $phone_number_field =
		Form::Field::PhoneNumberField->new( 'name' => 'phone_number', 'label' => 'Phone Number' );
	my $centre_affiliation =
		Form::Field::OcfCentrePopupMenu->new( 'name' => 'ocf_centre', 'label' => 'OCF Centre' );
	my $more_friends =
		Rose::HTML::Form::Field::PopUpMenu->new( name     => 'more_friends',
												 label    => 'Other choices',
												 required => 1
		);
	$more_friends->options( yes => 'Yes',
							no  => 'No' );
	$self->add_fields(
		'name'          => { 'type' => 'text',  'size' => 32, 'label' => 'Name' },
		'family_name'   => { 'type' => 'text',  'size' => 32, 'label' => 'Family Name' },
		'email_address' => { 'type' => 'email', 'size' => 32, 'label' => 'Email Address' },
		'phone_number'       => $phone_number_field,
		'centre_affiliation' => $centre_affiliation,
		'more_friends'       => $more_friends,
	);
} ## end sub build_form
1;
